//
//  PlayViewController.h
//  JiuKuGospel
//
//  Created by jiukuyinyue on 15-8-14.
//  Copyright (c) 2015年 JiuKuForApp. All rights reserved.
//

#import <UIKit/UIKit.h>

@class shige400LrcViewController;
@interface PlayViewController : UIViewController

@property (nonatomic, strong)UILabel * songNameLabel;               //歌曲名字
@property (nonatomic, strong)UILabel * songListNameLabel;           //歌曲所属列表名
@property (nonatomic, strong)UIButton * beforeBtn;                  //上一首
@property (nonatomic, strong)UIButton * playBtn;                    //播放与暂停
@property (nonatomic, strong)UIButton * nextBtn;                    //下一首
@property (nonatomic, strong)UIProgressView *HuanChongProgress;     //缓冲条
@property (nonatomic, strong)UISlider *sliderProgress;              //滑块
@property (nonatomic, strong)UIButton * playType;                   //播放类型
@property (nonatomic, strong)UIImageView * typeImageView;           //新设计播放类型控件
@property (nonatomic, strong)UIImageView * typeLieBImageView;       //新设计列表播放类型控件
@property (nonatomic, strong)UIButton * songsListBtn;               //歌曲列表
@property (nonatomic, strong)UILabel * currentTimeLabel;            //播放时长
@property (nonatomic, strong)UILabel * durationTimeLabel;           //总时长
@property (nonatomic, strong)UIImageView * theImageView;            //专辑图片

@property (nonatomic, strong)NSMutableArray * songListArr;          //列表数组
@property (nonatomic, strong)NSString * listNameStr;                //列表名字
//@property (nonatomic, strong)NSMutableArray * songAlbumsArr;        //专辑名字

@property (nonatomic, assign)NSInteger playStyleNum; // 播放模式：（顺序、单曲、随机）

@property (nonatomic, strong)UILabel * contentLabel;                //每日歌曲的内容

/** 播放器歌词列表 */
@property (nonatomic, strong)UITableView * geciTableView;
/** 播放器歌曲列表 */
@property (nonatomic, strong)UITableView * lieBiaoTableView;
@property (nonatomic, strong)UIView * bgLieBiaoView;                //歌曲列表背景
/** 播放器歌曲索引 */
@property (assign, nonatomic) NSInteger songIndex;
@property (nonatomic, strong)NSString * imageUrl;
@property (nonatomic, strong)NSString * contentStr;              //每日歌曲内容(灵修内容)

@property (nonatomic, assign)BOOL shige400Bool;                   //控制诗歌调用
@property (nonatomic, strong)shige400LrcViewController * shige400Lrc;  //shige400控制器

//正在下载的数组
@property(nonatomic, strong) NSMutableArray * downlingList;
//下载完毕的数组
@property(nonatomic, strong) NSMutableArray *finishedList;

@property (nonatomic, assign)BOOL localPlayBool;            //控制本地的播放

- (void)beforeSongAction:(UIButton *)btn;
- (void)nextSongAction:(UIButton *)btn;
- (void)playSongAction:(UIButton *)btn;

-(void)pauseAudio;
-(void)resumeAudio;
- (void)sliderProgressTouchUp:(UISlider *)sender;
- (BOOL)telephoneCallBefore;
- (void)changeIsPlaying;
- (void)changeIsPlayingNO;
- (void)sleepTimeChangeIsPlaying;

- (void)remoteControlReceivedWithEvent:(UIEvent *)event;


- (void)playMusicWithIndex:(NSInteger)count;
- (void)viewDidLoad;
- (void)showSongsList:(UITapGestureRecognizer *)tap;

@end
